﻿import com.gamemeal.physics.IForce;
import com.gamemeal.physics.Particle;
import com.gamemeal.physics.Point3;

/**
 * @author Colin
 */
class com.gamemeal.physics.TorqueForce implements IForce {
	public var vT:Point3;
	public var vR:Point3;
	
	public function TorqueForce(){
		vT = new Point3(0,0,0);
		vR = new Point3(0,0,0);
	}
	
	public function apply(p : Particle, dt : Number) {
		//var I = (p.m*vR.length*vR.length)/12;
		p.α = vR.x*vT.y - vR.y*vT.x;

		vT = new Point3(0,0,0);
		vR = new Point3(0,0,0);
		//p.τ = p.m*r*r*;
	}
}